<?php
class connectDb
{
	public function __construct()
	{
	
		$conn = mysql_connect("localhost","root","") or die ('Fail to connect localhost ');
		//$conn = mysql_connect("10.8.9.9","yilunfenfen","data2012") or die ('Fail to connect localhost ');
		
		mysql_select_db("food",$conn) or die ('Fail to connect db');
		
		mysql_query("SET NAMES 'UTF8'");
	}

}
$conn = mysql_connect("localhost","root","") or die ('Fail to connect localhost ');
//$conn = mysql_connect("10.8.9.9","yilunfenfen","data2012") or die ('Fail to connect localhost ');
error_reporting(0);

?>

